<%@page import="support.*, java.util.*" %>
<html>
<head><title>Provide Degrees - Choose University</title></head>
<body>
<%
	Object oCount = session.getAttribute("count");
	String count = oCount.toString();
	String location = request.getParameter("location" + count);
	session.setAttribute("location" + count, location);
	
%>
	User Name : <%= session.getAttribute("fullName")%> <p>
	Location : <%=location%> <p>
	University :
	<p>
<% 
   	support s = new support();   	
   	String path2 = config.getServletContext().getRealPath("universities.txt");
   	Vector universities = s.getUniversities(path2); 
%>
<%
%>	

<% 	
		for (int k = 0; k < universities.size(); k++) {
			Vector universityListOtherCountry = (Vector)universities.get(k);
			String otherCountry = (String)universityListOtherCountry.get(0);
			Vector o = (Vector)universityListOtherCountry.get(1);
			if (otherCountry.equals(location)) {
			for (int l = 0; l < o.size(); l++) {
			//String stringCount = session.getAttribute("count");
%>
			<a href="discipline.jsp?universities<%=count%>=<%=o.get(l)%>"><%=o.get(l)%></a>
<% 	
					if ((l + 1) % 3 == 0) {
						out.println("<br>");
					}
				}
			}
		}
	
	
%>
<p>
<p>
</body>
</html>

